<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="css/base.css" type="text/css" rel="stylesheet" />
 
    <script type="text/javascript" src="http://www.wangpiao.com/js/jquery.js"></script>
 
 
    <script type="text/javascript" src="/js/CookieAction.js"></script>
 
    <script language="javascript" type="text/javascript">
    $(document).ready(function(){ 
         $("#txtpc").keypress(function(event) {
            if (!$.browser.mozilla) 
            { 
                if (event.keyCode && (event.keyCode < 48 || event.keyCode > 57) && event.keyCode != 46)
                 {
                    event.preventDefault();
                 }
            } 
            else 
            {
                if (event.charCode && (event.charCode < 48 || event.charCode > 57) && event.which!= 46) 
                {
                   event.preventDefault();
                }
            }
        
        }); 
        $("#txtpc").blur(function() { 
            var input = $(this); 
            var v = $.trim(input.val());
            if(v!="")
            {
                var reg = new RegExp("^[0-9]*[1-9][0-9]*$"); 
                if (!reg.test(v)) { 
                    alert("请填入整数"); 
                    input.val("");
                    return false;
                }
                $("#txtpc").attr("value",(($("#txtpc").val()*100)/100)); 
            }
        });
    });
    function sub()
    {   
        var point=document.getElementById("selpoint").value;
        var pagecount=document.getElementById("selpage").value;
        if(point=="-1")
        {
            point=parseInt(document.getElementById("txtpc").value);
            if(point>99)
            {
                alert("购买点数超过100,请联系网票网销售人员，以便享受更多优惠，客服电话:400-678-2005");
                return;
            }
            if(point<10)
            {
                alert("最少购买点数为10点，请重新填写");return;
            }
        }
        window.open("/BuyExchange/BuyGeRenKa.html?point="+point+"&pagecount="+pagecount,"_blank");
    }
    
    function check(type)
    { 
         if($.cookie('ExCard')==null)
         {
            window.open("/Exchange/MyTicket_IndexNew.html");
            return;
         }
         else
         {
            if(type=="1")
            {
               window.open("/UserCenter/MyTicket_ExCenter.html");
            }
            else
            {
               window.open("/Exchange/MyTicket_Up_Excard_ExCenter.html");
            }
         }
    }
    function aa()
    {
        var p=document.getElementById("selpoint").value;
        if(p=="-1")
        {
            document.getElementById("s").style.display="none";
            document.getElementById("a").style.display="block";
        }
        else
        {
            document.getElementById("s").style.display="block";
            document.getElementById("a").style.display="none";
        }
    }
    </script>
 
</head>
<body>
    <div class="dyk mt8 fl">
        <h2>
            网票网电影卡</h2>
        <div class="fl dykL">
            <a href="/Exchange/MyTicket_IndexNew.html" target="_blank" title="电影卡">
                <img src="images/dyk.jpg" alt="电影卡" /></a></div>
        <p>
            百余家星级影院电影兑换卡,<font class="red">5-7</font>折兑换当天影票！<a href="/Exchange/MyTicket_IndexNew.html" target="_blank" title="了解更多">[了解更多]</a></p>
        <p class="last">
            <img src="images/btn_cz.jpg" alt="充值" style="cursor: pointer;" onclick="check('2')" />
            <img src="images/btn_cx.jpg" alt="查询" onclick="check('1')" style="cursor: pointer;" /></a></p>
        <p class="gouka">
            <span>购卡快速通道</span></p>
        <div class="dyk_tab">
            <div id="s">
                <p>
                    购买点数
                    <select id="selpoint" onchange="aa()">
                        <option value="10" selected="selected">10</option>
                        <option value="30">30</option>
                        <option value="50">50</option>
                        <option value="-1">其他</option>
                    </select>
                </p>
            </div>
            <div id="a" style="display: none">
                <p>
                    请填写点数
                    <input type="text" id="txtpc" style="width: 60px;" />
                </p>
            </div>
            <div id="p">
                <p>
                    购买张数
                    <select id="selpage">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5">5</option>
                        <option value="6">6</option>
                        <option value="7">7</option>
                        <option value="8">8</option>
                        <option value="9">9</option>
                    </select>
                </p>
            </div>
            <p class="last">
                <img src="images/btn_gouka.jpg" alt="立即购卡" onclick="sub();" style="cursor: pointer;" /></p>
        </div>
        <p class="gouka">
            <span>团购电话</span></p>
        <ul>
            <li>北京:010-58694619</li>
            <li>上海:021-64645225</li>
            <li>天津:022-27283475</li>
            <li>深圳:0755-88363588</li>
        </ul>
    </div>
</body>
</html>
.
